package com.thinvent.foxit.controller;

import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.thinvent.foxit.service.UserAuthService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/userAuth")
public class DataController extends ApiController {

    @Resource
    private UserAuthService userAuthService;

    @PostMapping("/flush")
    public R insert() {
        this.userAuthService.flush();
        return success("success");
    }

}
